Method and article of manufacture for design of electrochemical machining tool

ABSTRACT

A method of shaping a tool comprises the steps of defining a shape of an article to be formed with the tool as a plurality of first elements; defining an initial shape of the tool as a plurality of second elements; determining an electric potential of each of the first and second elements; determining an equipotential line between the article and the initial shape of the tool based on the electric potential of the first and second elements; and forming the tool to have a shape coincident with the equipotential line.

BACKGROUND

[0001] Electrochemical machining (ECM) is a process in which an electrically conductive metal workpiece is shaped by removing material through anodic dissolution. In ECM, the workpiece comprises the anode in an electrolytic cell, the tool comprises the cathode, and an electrolyte is pumped through a gap between the workpiece and the tool. When a potential difference is applied between the tool and the workpiece, current flows through the electrolyte as a result of electrochemical reactions taking place at the surfaces of both electrodes. The reaction at the anode workpiece surface removes material by the oxidation of metal atoms, while the cathode surface is typically unaffected by the reduction reaction occurring there. ECM is a non-contact machining process that can quickly shape any electrically conductive material regardless of the hardness or toughness of the material. The ECM process is also advantageous because it does not produce residual stresses in the workpiece.

[0002] In ECM, the tool is formed as an approximately complementary shape of the desired workpiece shape. The tool geometry is copied into the workpiece by electrochemical dissolution to obtain the desired workpiece shape. During the copying process, a gap is established between the tool and the workpiece, as the tool feed rate becomes substantially equal to the rate of workpiece dissolution. The gap size often varies significantly at different locations over the machining region due to, primarily, the non-uniformity of the electric field and temperature field in the region. As a result, the workpiece does not take on the exact shape of the tool. To obtain a desired workpiece shape with desired accuracy, the tool geometry is modified to compensate for the non-uniform gap distribution over the machining region.

[0003] Modeling of the relationship between the shape of the tool and the resulting shape of the workpiece can be complex due to modeling of the electrolyte flow, modeling of the electrochemical reactions in the gap region, tool surface, and workpiece surface, and modeling of the electric field which is influenced by all of these factors. Thus, the problem of predicting the workpiece surface resulting from a known tool shape (commonly known as “the direct problem”) can be relatively complex.

[0004] The problem of determining a tool shape based on a desired workpiece shape (commonly known as “the inverse problem”), introduces an additional degree of complexity. Known methods of determining a tool shape based on a desired workpiece shape typically utilize an iterative process. For example, Shuvra Das et al., Use of Boundary Element Method for the Determination of Tool Shape in Electrochemical Machining, International Journal for Numerical Methods in Engineering, Vol. 35, 1045-1054 (1992), describes an algorithm based on the boundary integral equation technique which utilizes a non-linear optimization method. Through an iterative process, the shape of the cathode tool is determined by minimizing a functional. In this approach, the inverse problem is converted to a direct problem by assuming a tool shape and its boundary conditions, and the shape is adjusted based on the feedback from the computed results. This approach typically takes a large amount of computational resources to complete the iterations and may have problems with convergence. The iterations also introduce approximations which adversely affect the accuracy of the results.

[0005] It would be desirable, therefore, to have a method for directly determining the tool shape needed to produce a desired workpiece shape, without iteration, and without approximation.

SUMMARY

[0006] A method of shaping a tool, according to an exemplary embodiment of the invention, comprises the steps of defining a shape of an article to be formed with the tool as a plurality of first elements; defining an initial shape of the tool as a plurality of second elements; determining an electric potential of each of the first and second elements; determining an equipotential line between the article and the initial tool shape based on the electric potential of the first and second elements; and forming the tool to have a shape coincident with the equipotential line.

BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Other features and advantages of the invention will be more readily understood upon reading the following detailed description, taken in conjunction with the drawings, in which:

[0008]FIG. 1 is a drawing of an electrochemical machining process;

[0009]FIG. 2 is a drawing of the gap between the tool and the workpiece in an electrochemical machining process;

[0010]FIG. 3 is a flow chart illustrating a method according to an exemplary embodiment of the invention;

[0011]FIGS. 4 and 5 are graphs which illustrate the accuracy of an exemplary embodiment of the invention;

[0012]FIG. 6 is a diagram of a method of constructing boundaries of the gap shown in FIG. 2; and

[0013]FIG. 7 is a diagram of an apparatus which can be used to carry out the method of FIG. 3.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014]FIG. 1 illustrates an electrochemical machining apparatus which includes electrodes formed according to an exemplary embodiment of the invention. In the electrochemical machining process, an electrolytic cell is formed with the workpiece 100, the tool 110, and the electrolyte which flows in a gap 120 between the tool 110 and the workpiece 100. In FIG. 1, a second electrolytic cell is formed between a second tool 130, the workpiece 100, and the electrolyte which flows through a second gap 140. Electrochemical machining is particularly suitable for the formation of an airfoil, as shown in FIG. 1, which may comprise a very hard material, such as a high temperature superalloy, of complex shape.

[0015] As shown in FIG. 1, in each electrolytic cell, the tool 110, 130 forms the cathode, and the workpiece 100 forms the anode. An electric potential is maintained across the two electrodes. During the machining process, the tool 110, 130 is moved towards the workpiece 100 at a certain feed rate, and the workpiece 100 slowly takes a shape that is approximately complementary to the shape of the tool. After an initial period, an equilibrium is reached in which the tool feed rate is substantially equal to the rate at which material is removed from the workpiece such that a substantially constant gap width is maintained between the tool and the workpiece.

[0016] The reaction at the anode surface removes material by the oxidation of metal atoms, while the cathode surface is typically unaffected by the hydrogen reduction reaction occurring there. The electrolyte, which may be NaNO₃ for example, oxidizes the metal atoms of the workpiece and removes the oxidized metal atoms. The electrolyte has a volumetric electrochemical equivalent K_(v) (mm³/coulomb) and a conductivity κ (1/mm·ohm), which may be suitably adjusted for a particular application.

[0017]FIG. 2 illustrates the gap between the tool and the workpiece. The gap is defined by a plurality of surfaces. Γ_(c) is the surface of the cathode tool which forms one side of the gap. Γ_(a) is the surface of the anode workpiece which forms an opposing side the gap. Γ_(l) and Γ_(r) are the left and right surfaces, respectively, of the gap through which the electrolyte flows, which may form the inlet and the outlet to the gap, respectively. The function F is a boundary function which represents an initial tool shape. Each of the surfaces of the gap Γ_(c), Γ_(a), Γ_(l) and Γ_(r), as well as the boundary function F, comprise a plurality of boundary elements 121 delineated by nodes 122, as will be discussed further below. The vector n is a surface normal vector. The vector V_(f) represents the magnitude and direction of the tool feed rate.

[0018] The electric potential in the gap 120 is described by the Laplace equation: $\begin{matrix} {{\nabla^{2}\varphi} = {{\frac{\partial^{2}\varphi}{\partial x^{2}} + \frac{\partial^{2\varphi}}{\partial y^{2}}} = 0}} & (1) \end{matrix}$

[0019] where φ is the electric potential in the gap as a function of the Cartesian coordinates x and y.

[0020]FIG. 3 is a flow chart which illustrates a method according to an exemplary embodiment of the invention. FIG. 7 illustrates an apparatus which may be used to carry out the method shown in FIG. 3. As shown in FIG. 7, the method may be implemented with a computer 50 which includes a microprocessor 52 which reads computer readable program code. The computer readable program code is typically contained in an article of manufacture comprising a computer usable medium 54 such as floppy disk, hard drive disc, or other storage medium. The computer usable medium 54 contains electromagnetically fixed instructions to carry out the method shown in FIG. 3. The computer 50 includes a disc drive 56 which reads the computer useable medium 54. An input/output device 58 allows information to be exchanged between a user and the computer 50.

[0021] According to an exemplary embodiment of the invention, the initial step of the method shown in FIG. 3 involves defining the desired surface shape of the workpiece as the function Γ_(a), which is a surface geometry. Γ_(a) may comprise a plurality of boundary elements, delineated by nodes, which define the desired workpiece shape.

[0022] Step 2 of FIG. 3 comprises defining an initial tool shape. The tool shape is initially unknown, and may be represented for a cross section of the tool by the boundary function F, which may be a function of two variables F=F(x,y), for example. The boundary function F is selected such that it encloses a domain D₁ with the known boundaries Γ_(l), Γ_(r) and Γ_(a), as shown in FIG. 2. The domain D₁ includes the domain D₀ as a subset, which defines the final tool shape. In this way, the final tool boundary Γ_(c) can be obtained, since it lies within the domain D₁.

[0023] The boundary function F may be set initially according the cosine θ method. According to the cosine θ method, a plurality of segments are extended perpendicularly from the workpiece surface. Typically, one segment is extended from each boundary element 121 of the workpiece surface. Each segment has a length which is equal to a predetermined distance, e.g. 1.5 times the desired gap width, divided by the angle 0 between the tool feed rate direction V_(f) and the surface normal direction n. The ends of the plurality of the segments define the boundary function F. The boundary function F may comprise a plurality of elements which together represent the initial tool shape. The boundary function F defines an initial surface shape of the tool, but is not modeled as an actual tool. Therefore, the electric potential on the boundary function F is not necessarily constant.

[0024] The cosine θ method can be used for the entire surface of the workpiece, but is typically used for sections of the workpiece in which the angle θ is less than or equal to 65 degrees, for example. If the angle θ is greater than 65 degrees in a section of the workpiece, a constant offset, for example 3.5 times the desired gap width, can be used as the length of the segments extending perpendicularly from the workpiece. The offset 3.5 is typically used, since 1.5/cos(65) is about 3.5, which results in a smooth transition between sections above and below 65 degrees.

[0025] Step 3 of the exemplary method shown in FIG. 3 involves inputting known boundary conditions of the system shown in FIG. 2 into equation (1), the Laplace equation. Typically, it is assumed that no electrolyte concentration or temperature gradients exist within the gap; the current efficiency and any surface overpotentials are constant; the gap has reached an equilibrium state; and the electric field distribution in the gap region and the current and potential follow a primary distribution. The known boundary conditions can be described as follows: $\begin{matrix} {\varphi = U_{0}} & (2) \\ {q_{a} = {\frac{\partial\varphi}{\partial n} = {{\frac{V_{f}}{K_{v}\quad \cdot \quad \kappa}\quad \cdot \quad \cos}\quad \theta}}} & (3) \\ {\partial_{i}{= {\frac{\partial\varphi}{\partial n} = 0}}} & (4) \\ {\partial_{0}{= {\frac{\partial\varphi}{\partial n} = 0}}} & (5) \end{matrix}$

[0026] where U_(O) is the electric potential on the anode workpiece boundary, q_(a) is the potential normal gradient on the anode boundary, V_(f) is tool feed rate (mm/sec), K_(v) is the volumetric electrochemical equivalent of the electrolyte (mm³/coulomb), κ is the electrolyte conductivity (1/mm·ohm), θ is the angle between the anode normal direction (n) and the tool feed direction (V_(f)), q_(l) is the potential normal gradient at the electrolyte inlet boundary Γ_(l), and q_(r) is the potential normal gradient at the electrolyte outlet boundary Γ_(r). The electrolyte conductivity κ is typically assumed to be constant, and can be measured at the inlet of the gap, for example. The volumetric electrochemical equivalent can also be obtained empirically.

[0027] The unknown boundary conditions are as follows:

Γ=Γ(x,y)  (6)

φ=u(x,y)  (7)

q=∂φ/∂n  (8)

[0028] where Γ is the unknown tool boundary, φ is the potential on the initial tool boundary function F, and q is the partial derivative of the potential φ with respect to the normal n on the initial tool boundary function F.

[0029] Equations (4) and (5) indicate that the boundaries Γ_(l) and Γ_(r) are electric current lines. To satisfy equations (4) and (5), the boundaries Γ_(l) and Γ_(r) can be constructed as follows. In FIG. 6, the desired workpiece shape has been modified to facilitate formation of the boundaries Γ_(l) and Γ_(r). The modified workpiece includes two thin plates 30 and 32 of infinitesimal thickness extending perpendicularly from the left and right sides of the workpiece, respectively. The plates 30 and 32 may extend from the workpiece at the points at which the radius of curvature of the workpiece is smallest, for example. The boundary function F generated in the region of the plates 30 and 32 is a straight line parallel to the plates 30, 32. The inlet boundary Γ_(l) is formed as a segment which is perpendicular to the plate 30 and which intersects the boundary function F. The outlet boundary Γ_(r) is formed as a segment which is perpendicular to the plate 32 and which intersects the boundary function F. The boundaries Γ_(l) and Γ_(r) satisfy equations (4) and (5) if the lengths of the plates 30 and 32 are about twice as large as the gap between the plates 30, 32 and the boundary function F. Although the desired workpiece shape is altered slightly due to the addition of the plates 30, 32, the actual machined workpiece shape will be affected only slightly, since the thickness of the plates 30, 32 is infinitesimal. Modeling of the plates 30, 32 allows the boundary conditions of equations (4) and (5) to be satisfied.

[0030] Step 4 in the method of FIG. 3 involves the determination of values for the potential φ along the boundaries F, Γ_(l), and Γ_(r) and the potential normal gradient q along the boundary F. To calculate the electric potential and the potential normal gradient values along the boundaries of the domain D₁, the boundary element method (BEM) can be utilized in conjunction with the Laplace equation which describes the electric field in the domain D₁. The boundary element method involves discretizing the boundaries of the domain D₁ into a plurality of elements and determining the electric potential and potential normal gradients of each of the elements.

[0031] Equation (1), the Laplace equation, with the initial tool boundary F and boundary equations (2)-(5) can be transformed into a boundary integral element model using Green's theorem as follows: $\begin{matrix} \begin{matrix} {{\int_{D1}^{\quad}{\left( {\nabla^{2}\varphi^{*}} \right)\varphi \quad {D}}} = \quad {{- {\int_{\Gamma a}^{\quad}{q_{a}\varphi^{*}\quad {\Gamma}}}} - {\int_{\Gamma 0}^{\quad}{q_{0}\varphi^{*}\quad {\Gamma}}} - {\int_{F}^{\quad}{q\quad \varphi^{*}\quad {\Gamma}}} -}} \\ {\quad {{\int_{\Gamma i}^{\quad}{q\quad i\quad \varphi^{*}\quad {\Gamma}}} + {\int_{\Gamma a}^{\quad}{U_{o}q^{*}\quad {\Gamma}}} + {\int_{\Gamma o}^{\quad}{{\varphi q}^{*}\quad {\Gamma}}} +}} \\ {\quad {{\int_{F}^{\quad}{{\varphi q}^{*}\quad {\Gamma}}} + {\int_{\Gamma i}^{\quad}{\varphi \quad q^{*}\quad {\Gamma}}}}} \end{matrix} & (9) \end{matrix}$

[0032] where φ^(*) is the fundamental solution, and q^(*) is the partial derivative of the fundamental solution with respect to the normal n.

[0033] The boundary of D₁ is then discretized by dividing it into N boundary elements separated by nodes. For each boundary element, the values of φ and q are assumed to be constant over each element and equal to the value at each mid-point node. The corresponding boundary element model is then as follows: $\begin{matrix} {{{\frac{1}{2}\varphi^{1}} + {\sum\limits_{l = 1}^{N}{\int_{\Gamma j}^{\quad}{\varphi \quad q^{*}{\Gamma}}}}} = {\sum\limits_{l = 1}^{N}{\int_{\Gamma j}^{\quad}{\varphi \quad q^{*}\quad {\Gamma}}}}} & (10) \end{matrix}$

[0034] The point l is one of the boundary nodes and Γ_(j) is the boundary of element j. To simplify Equation (10), two functions H and G can be defined as follows: $\begin{matrix} {H^{1j} = {{\int_{\Gamma j}^{\quad}{q^{*}\quad {\Gamma}\quad {for}\quad i}} \neq j}} & \text{(11a)} \\ {H^{1J} = {{{1/2} + {\int_{\Gamma j}^{\quad}{q^{*}{\Gamma}\quad {for}\quad i}}} = j}} & \text{(11b)} \\ {G^{ij} = {\int_{\Gamma j}^{\quad}{\Phi^{*}{{\Gamma}.}}}} & (12) \end{matrix}$

[0035] Equation (10) then becomes: $\begin{matrix} {{\sum\limits_{J = 1}^{N}{H^{iJ}\varphi^{J}}} = {\sum\limits_{j = 1}^{N}{G^{1j}q^{J}}}} & (13) \end{matrix}$

[0036] The set of equations described by equation (13) can be expressed in a matrix form as:

HΦ=GQ  (14)

[0037] where H and G are N×N matrices, and Φ and Q are N×1 vectors. Φ and Q contain, respectively, the potential and potential gradient values for all the boundary nodes. The total number of unknowns to be solved is N_(r)+2N_(c)+N_(l), where N_(a), N_(r), N_(c), and N_(l) are the numbers of elements on the boundaries of the anode, electrolyte outlet, boundary function F, and electrolyte inlet, respectively.

[0038] By grouping the vectors in Φ and Q and partitioning the matrices H and G according to the grouped vectors, equation (14) can be rewritten as follows: $\begin{matrix} {{\begin{bmatrix} {h11} & {h12} & {h13} & {h14} \\ {h21} & {h22} & {h23} & {h24} \\ {h31} & {h32} & {h33} & {h34} \\ {h41} & {h42} & {h43} & {h44} \end{bmatrix}\left\lbrack \quad \begin{matrix} {\Phi \quad a} \\ {\Phi \quad r} \\ {\Phi \quad c} \\ {\Phi \quad l} \end{matrix} \right\rbrack} = {{\left\lbrack \quad \begin{matrix} {g11} & {g12} & {g13} & {g14} \\ {g21} & {g22} & {g23} & {g24} \\ {g31} & {g32} & {g33} & {g34} \\ {g41} & {g42} & {g43} & {g44} \end{matrix} \right\rbrack\left\lbrack \quad \begin{matrix} {Qa} \\ {Qr} \\ {Qc} \\ {Ql} \end{matrix} \right\rbrack}\quad.}} & (15) \end{matrix}$

[0039] where Φ_(a) and Q_(a) are N_(a)×1 vectors that respectively contain the known nodal potential and potential gradient values on the workpiece boundary, Φ_(r) and Q_(r) are N_(r)×1 vectors respectively containing the unknown nodal potential and known potential gradient values on the right outlet boundary, Φ_(c) and Q_(c) are N_(c)×1 vectors respectively containing the unknown nodal potential and potential gradient values on the boundary function F, and Φ_(l) and Q_(l) are N_(l)×1 vectors respectively containing the unknown nodal potential and known potential gradient values on the left inlet boundary. hij and gij are submatrices of H and G after partitioning.

[0040] After introducing the known boundary conditions described in equations (2) through (5) into equation (15), the unknown vectors and known vectors in equation (15) are separated to obtain the following equation: $\begin{matrix} {{{\begin{bmatrix} {- {g13}} & {h12} & {h13} & {h14} \\ {- {g23}} & {h22} & {h23} & {h24} \\ {- {g33}} & {h32} & {h33} & {h34} \\ {- {g43}} & {h42} & {h43} & {h44} \end{bmatrix}\left\lbrack \quad \begin{matrix} {Qc} \\ {\Phi \quad r} \\ {\Phi \quad c} \\ {\Phi \quad l} \end{matrix} \right\rbrack} = {\left\lbrack \quad \begin{matrix} {g11} & {g12} & {- {h11}} & {g14} \\ {g21} & {g22} & {- {h21}} & {g24} \\ {g31} & {g32} & {- {h31}} & {g34} \\ {g41} & {g42} & {- {h41}} & {g44} \end{matrix} \right\rbrack\left\lbrack \quad \begin{matrix} {Qa} \\ {Qr} \\ {\Phi a} \\ {Ql} \end{matrix} \right\rbrack}}\quad} & (16) \end{matrix}$

[0041] In equation (16), the vector on the left hand side contains all unknowns, including both the nodal potential and potential gradient values, while the vector on the right hand side contains all the known nodal conditions.

[0042] In equation (16), the unknown vector Q_(c) and the known vector Φ_(a) have exchanged their positions with respect to equation (15). In a conventional BEM model, only vectors within the same boundary segment are exchanged, because the conventional BEM model always has one known boundary condition and one unknown boundary condition on each segment of the boundary. Since the vector exchange in conventional BEM is within the same boundary segment, the dimensions of the vectors involved, as well as the corresponding partitioned submatrices, are automatically the same. By contrast, in the inverse BEM model according to exemplary embodiments of the present invention, each element in the initial boundary function F has two unknown boundary conditions, and the vector exchange is between two different segments. Therefore, a condition is imposed so that the vectors are exchangeable. The condition for equation (16) to exist is that the number of elements for the anode boundary is equal to the number of elements for the initial boundary function F:

N_(a)=N_(c)  (17)

[0043] This condition can be accommodated during the generation of the initial boundary function F.

[0044] After equation (16) is solved to determine the potential and potential gradient values of each boundary element defining the domain D₁, equation (10) is used to directly calculate an equipotential line in the domain D₁ as shown in step 5 of FIG. 3. The internal potential values φ^(i) within the domain D₁ are calculated analytically using the matrices H^(ij) and G^(ij) that correspond to each different internal point. The equipotential line in the gap represents the final tool shape, because the tool is formed of an electrically conductive material which has an equal potential on its surface, assuming that no surface overpotential changes exist. Any equipotential line in the gap represents a possible tool shape under the Uniqueness Theorem of the electric field and ECM theory.

[0045] Calculation of an equipotential line may be accomplished in one of two ways, for example. According to a first method, a point in the domain D₁ is located which corresponds to a desired gap size between the tool and the workpiece. The point may be located by extending a segment having a length equal to the desired gap size from the workpiece along the tool feed direction. Next, the electric potential at the point is calculated with equation (10). Finally, equation (10) is used to calculate a plurality of points having the same potential to form an equipotential line in the gap.

[0046] According to a second exemplary method, the equipotential line is calculated based on a desired operating voltage. According to this method, a point is located in the domain D₁ which has a potential difference with the workpiece potential equal to the desired operating voltage. Next, equation (10) is used to calculate a plurality of points in the domain D₁ at the same potential to form an equipotential line.

[0047] To find the equipotential points in the gap, a bisection method can be implemented for each node. The potential values may be calculated along the line defined by a workpiece node and its corresponding boundary function node along the workpiece normal direction.

[0048] For improved accuracy, a check can be performed after an equipotential line has been determined. For example, in the case of using the machining voltage to locate the equipotential line, the gap size between the equipotential line and the workpiece surface can be calculated, and vice versa. If the gap size significantly differs from the designated machining gap size, a surface overpotential value, for example ranging from 0-3 volts, may be subtracted from the machining voltage, and the gap size recalculated. The surface overpotential is a phenomenon caused by polarization of the electrolyte adjacent to the tool and workpiece surfaces, which reduces the effective voltage across the gap.

[0049] The tool surface is then formed to correspond with the desired equipotential line, as indicated in step 6 of FIG. 3, and the tool is used to form the workpiece surface, as indicated in step 7 of FIG. 3.

[0050] Exemplary embodiments of the invention produce results with improved accuracy. FIGS. 4 and 5 are graphs which show a comparison of a proven production tool and the shape of a tool determined by an exemplary embodiment of the invention. FIG. 4 shows the convex side of an airfoil, while FIG. 5 shows the concave side of the airfoil. As can be seen in the figures, the shape of the tool determined with exemplary embodiments of the present invention closely matches the shape of the proven production tool. The production tool geometry can produce high accuracy airfoils in practice, which verifies the accuracy of the exemplary method. The discrepancy shown in FIG. 5, between the production tool and the predicted tool shape, may arise partly from an inconsistency between the assumed conditions of the model and the actual machining conditions of the production tool. For example, changes in the overpotential, electrolyte conductivity, and current efficiency during machining may produce such a discrepancy. The accuracy can be improved if experimental data on overpotential and current efficiency are used to modify the anode boundary conditions. In addition, a model of the electrolyte conductivity, which accounts for changes in conductivity at different locations of the gap, can be used to further improve the accuracy of the prediction.

[0051] Exemplary embodiments of the invention provide at least two significant advantages over prior methods. First, the method is accurate, since the equipotential line which delineates the tool surface shape is calculated directly, without interpolation which introduces approximation errors. Secondly, because the surface of the tool is calculated directly from the boundary elements, the computational efficiency of the method is significantly increased. These factors can be particularly advantageous in an environment in which it is necessary to quickly and accurately produce a new workpiece shape, especially if the shape is complex. Exemplary embodiments of the invention can reduce design and iteration costs to a significant extent, since post-machining of the workpiece is significantly reduced due to the high accuracy of the method.

[0052] While the invention has been described with reference to particular embodiments, those skilled in the art will understand that various changes may be made without departing from the scope of the invention. 

What is claimed is:
 1. A method of shaping a tool comprising the steps of: defining a shape of an article to be formed with the tool as a plurality of first elements; defining an initial shape of the tool as a plurality of second elements; determining an electric potential of each of the first and second elements; determining an equipotential line between the article and the initial shape of the tool directly from the electric potential of the first and second elements; and forming the tool to have a shape coincident with the equipotential line.
 2. The method of claim 1 , wherein the step of defining an initial shape of the tool comprises extending a plurality of segments perpendicularly from the plurality of first elements.
 3. The method of claim 1 , wherein each of the plurality of segments has a length which is defined as a constant value divided by the cosine of an angle between the segment and a tool feed direction.
 4. The method of claim 3 , wherein for values of the angle greater than a predetermined value, the plurality of segments have a length which is a second constant value.
 5. The method of claim 4 , wherein the constant value is about 1.5 times a desired gap width, the predetermined value is about 65 degrees, and the second constant value is about 3.5 times the desired gap width.
 6. The method of claim 1 , further comprising the step of making the plurality of first elements equal in number to the plurality of second elements.
 7. The method of claim 1 , wherein the equipotential line between the article and the initial shape of the tool is calculated non-iteratively from the electric potential of the first and second elements.
 8. The method of claim 1 , wherein the step of determining an equipotential line comprises: determining an electric potential at a point corresponding to a desired gap size; and extending the equipotential line from the point.
 9. The method of claim 1 , wherein the step of determining an equipotential line comprises: determining a location of a point in a gap between the initial shape of the tool and the article based on a desired operating voltage; and extending the equipotential line from the point.
 10. The method of claim 1 , wherein the step of extending the equipotential line comprises bisecting a line extending between corresponding nodes of the initial shape of the tool and the article.
 11. The method of claim 1 , wherein the equipotential line is determined with the following equation: ${{\frac{1}{2}\varphi^{i}} + {\sum\limits_{j = 1}^{N}{\int_{\Gamma j}^{\quad}{\varphi \quad q^{*}{\Gamma}}}}} = {\sum\limits_{j = 1}^{N}{\int_{\Gamma j}^{\quad}{\varphi \quad q^{*}{\Gamma}}}}$

where φ^(i) is an electric potential in a gap between the article and the initial shape of the tool, Γ_(j) represents a boundary of the jth element, and q is a partial derivative of the potential with respect to a surface normal.
 12. The method of claim 1 , wherein the step of defining the shape of the article comprises defining a thin plate which extends perpendicularly from an edge of the article.
 13. The method of claim 12 , wherein the thin plate has a length which is at least two times a distance from the thin plate to the initial shape of the tool.
 14. A method of shaping a workpiece with a tool comprising the steps of: defining a gap between an initial tool shape and the workpiece with a plurality of first boundary elements representing the initial tool shape and a plurality of second boundary elements representing the workpiece, wherein each of the first boundary elements is associated with an unknown potential and an unknown potential normal gradient, and each of the second boundary elements is associated with a known potential and a known potential normal gradient; forming a matrix equation containing the first and second boundary elements, based on the Laplace equation; exchanging in the matrix equation a first vector representing the unknown potential normal gradient of the tool with a second vector representing the known potential of the workpiece; solving the matrix equation to determine values for the unknown potential and unknown potential normal gradient values associated with the first boundary elements; determining an equipotential line in the gap; forming the tool to have a surface which coincides with the equipotential line; and forming the workpiece with the tool.
 15. The method of claim 14 , wherein the known potential normal gradient associated with the second boundary elements is obtained empirically.
 16. The method of claim 14 , wherein the known potential normal gradient associated with the second boundary is obtained by measuring a volumetric electrochemical equivalent of an electrolyte and a conductivity of the electrolyte.
 17. An article of manufacture comprising: a computer useable medium containing computer readable program code means embodied therein for designing an electrochemical machining tool, the computer readable program code means in the article of manufacture comprising: first computer readable program code means for defining a shape of the article as a plurality of first elements; second computer readable program code means for defining an initial shape of a tool as a plurality of second elements; third computer readable program code means for determining an electric potential of each of the first and second elements; fourth computer readable program code means for determining an equipotential line between the article and the initial shape of the tool directly from the electric potential of the first and second elements; and fifth computer readable program code means for forming the tool to have a shape coincident with the equipotential line. 